
package org.onvif.ver20.ptz.wsdl;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import jakarta.jws.WebMethod;
import jakarta.jws.WebParam;
import jakarta.jws.WebResult;
import jakarta.jws.WebService;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.ws.RequestWrapper;
import jakarta.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 4.1.2
 * 2025-07-12T14:41:07.961+08:00
 * Generated source version: 4.1.2
 *
 */
public final class PTZ_PTZPort_Client {

    private static final QName SERVICE_NAME = new QName("http://www.onvif.org/ver20/ptz/wsdl", "PTZService");

    private PTZ_PTZPort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = PTZService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }

        PTZService ss = new PTZService(wsdlURL, SERVICE_NAME);
        PTZ port = ss.getPTZPort();

        {
        System.out.println("Invoking setPreset...");
        java.lang.String _setPreset_profileToken = "";
        java.lang.String _setPreset_presetName = "";
        java.lang.String _setPreset_presetTokenVal = "";
        jakarta.xml.ws.Holder<java.lang.String> _setPreset_presetToken = new jakarta.xml.ws.Holder<java.lang.String>(_setPreset_presetTokenVal);
        port.setPreset(_setPreset_profileToken, _setPreset_presetName, _setPreset_presetToken);

        System.out.println("setPreset._setPreset_presetToken=" + _setPreset_presetToken.value);

        }
        {
        System.out.println("Invoking continuousMove...");
        java.lang.String _continuousMove_profileToken = "";
        org.onvif.ver10.schema.PTZSpeed _continuousMove_velocity = null;
        javax.xml.datatype.Duration _continuousMove_timeout = null;
        port.continuousMove(_continuousMove_profileToken, _continuousMove_velocity, _continuousMove_timeout);


        }
        {
        System.out.println("Invoking getStatus...");
        java.lang.String _getStatus_profileToken = "";
        org.onvif.ver10.schema.PTZStatus _getStatus__return = port.getStatus(_getStatus_profileToken);
        System.out.println("getStatus.result=" + _getStatus__return);


        }
        {
        System.out.println("Invoking operatePresetTour...");
        java.lang.String _operatePresetTour_profileToken = "";
        java.lang.String _operatePresetTour_presetTourToken = "";
        org.onvif.ver10.schema.PTZPresetTourOperation _operatePresetTour_operation = null;
        port.operatePresetTour(_operatePresetTour_profileToken, _operatePresetTour_presetTourToken, _operatePresetTour_operation);


        }
        {
        System.out.println("Invoking setHomePosition...");
        java.lang.String _setHomePosition_profileToken = "";
        port.setHomePosition(_setHomePosition_profileToken);


        }
        {
        System.out.println("Invoking createPresetTour...");
        java.lang.String _createPresetTour_profileToken = "";
        java.lang.String _createPresetTour__return = port.createPresetTour(_createPresetTour_profileToken);
        System.out.println("createPresetTour.result=" + _createPresetTour__return);


        }
        {
        System.out.println("Invoking modifyPresetTour...");
        java.lang.String _modifyPresetTour_profileToken = "";
        org.onvif.ver10.schema.PresetTour _modifyPresetTour_presetTour = null;
        port.modifyPresetTour(_modifyPresetTour_profileToken, _modifyPresetTour_presetTour);


        }
        {
        System.out.println("Invoking stop...");
        java.lang.String _stop_profileToken = "";
        java.lang.Boolean _stop_panTilt = null;
        java.lang.Boolean _stop_zoom = null;
        port.stop(_stop_profileToken, _stop_panTilt, _stop_zoom);


        }
        {
        System.out.println("Invoking getConfigurations...");
        java.util.List<org.onvif.ver10.schema.PTZConfiguration> _getConfigurations__return = port.getConfigurations();
        System.out.println("getConfigurations.result=" + _getConfigurations__return);


        }
        {
        System.out.println("Invoking getPresetTours...");
        java.lang.String _getPresetTours_profileToken = "";
        java.util.List<org.onvif.ver10.schema.PresetTour> _getPresetTours__return = port.getPresetTours(_getPresetTours_profileToken);
        System.out.println("getPresetTours.result=" + _getPresetTours__return);


        }
        {
        System.out.println("Invoking removePreset...");
        java.lang.String _removePreset_profileToken = "";
        java.lang.String _removePreset_presetToken = "";
        port.removePreset(_removePreset_profileToken, _removePreset_presetToken);


        }
        {
        System.out.println("Invoking getPresetTour...");
        java.lang.String _getPresetTour_profileToken = "";
        java.lang.String _getPresetTour_presetTourToken = "";
        org.onvif.ver10.schema.PresetTour _getPresetTour__return = port.getPresetTour(_getPresetTour_profileToken, _getPresetTour_presetTourToken);
        System.out.println("getPresetTour.result=" + _getPresetTour__return);


        }
        {
        System.out.println("Invoking relativeMove...");
        java.lang.String _relativeMove_profileToken = "";
        org.onvif.ver10.schema.PTZVector _relativeMove_translation = null;
        org.onvif.ver10.schema.PTZSpeed _relativeMove_speed = null;
        port.relativeMove(_relativeMove_profileToken, _relativeMove_translation, _relativeMove_speed);


        }
        {
        System.out.println("Invoking gotoHomePosition...");
        java.lang.String _gotoHomePosition_profileToken = "";
        org.onvif.ver10.schema.PTZSpeed _gotoHomePosition_speed = null;
        port.gotoHomePosition(_gotoHomePosition_profileToken, _gotoHomePosition_speed);


        }
        {
        System.out.println("Invoking getServiceCapabilities...");
        org.onvif.ver20.ptz.wsdl.Capabilities _getServiceCapabilities__return = port.getServiceCapabilities();
        System.out.println("getServiceCapabilities.result=" + _getServiceCapabilities__return);


        }
        {
        System.out.println("Invoking getConfiguration...");
        java.lang.String _getConfiguration_ptzConfigurationToken = "";
        org.onvif.ver10.schema.PTZConfiguration _getConfiguration__return = port.getConfiguration(_getConfiguration_ptzConfigurationToken);
        System.out.println("getConfiguration.result=" + _getConfiguration__return);


        }
        {
        System.out.println("Invoking sendAuxiliaryCommand...");
        java.lang.String _sendAuxiliaryCommand_profileToken = "";
        java.lang.String _sendAuxiliaryCommand_auxiliaryData = "";
        java.lang.String _sendAuxiliaryCommand__return = port.sendAuxiliaryCommand(_sendAuxiliaryCommand_profileToken, _sendAuxiliaryCommand_auxiliaryData);
        System.out.println("sendAuxiliaryCommand.result=" + _sendAuxiliaryCommand__return);


        }
        {
        System.out.println("Invoking setConfiguration...");
        org.onvif.ver10.schema.PTZConfiguration _setConfiguration_ptzConfiguration = null;
        boolean _setConfiguration_forcePersistence = false;
        port.setConfiguration(_setConfiguration_ptzConfiguration, _setConfiguration_forcePersistence);


        }
        {
        System.out.println("Invoking getPresets...");
        java.lang.String _getPresets_profileToken = "";
        java.util.List<org.onvif.ver10.schema.PTZPreset> _getPresets__return = port.getPresets(_getPresets_profileToken);
        System.out.println("getPresets.result=" + _getPresets__return);


        }
        {
        System.out.println("Invoking getNode...");
        java.lang.String _getNode_nodeToken = "";
        org.onvif.ver10.schema.PTZNode _getNode__return = port.getNode(_getNode_nodeToken);
        System.out.println("getNode.result=" + _getNode__return);


        }
        {
        System.out.println("Invoking gotoPreset...");
        java.lang.String _gotoPreset_profileToken = "";
        java.lang.String _gotoPreset_presetToken = "";
        org.onvif.ver10.schema.PTZSpeed _gotoPreset_speed = null;
        port.gotoPreset(_gotoPreset_profileToken, _gotoPreset_presetToken, _gotoPreset_speed);


        }
        {
        System.out.println("Invoking removePresetTour...");
        java.lang.String _removePresetTour_profileToken = "";
        java.lang.String _removePresetTour_presetTourToken = "";
        port.removePresetTour(_removePresetTour_profileToken, _removePresetTour_presetTourToken);


        }
        {
        System.out.println("Invoking getNodes...");
        java.util.List<org.onvif.ver10.schema.PTZNode> _getNodes__return = port.getNodes();
        System.out.println("getNodes.result=" + _getNodes__return);


        }
        {
        System.out.println("Invoking getPresetTourOptions...");
        java.lang.String _getPresetTourOptions_profileToken = "";
        java.lang.String _getPresetTourOptions_presetTourToken = "";
        org.onvif.ver10.schema.PTZPresetTourOptions _getPresetTourOptions__return = port.getPresetTourOptions(_getPresetTourOptions_profileToken, _getPresetTourOptions_presetTourToken);
        System.out.println("getPresetTourOptions.result=" + _getPresetTourOptions__return);


        }
        {
        System.out.println("Invoking absoluteMove...");
        java.lang.String _absoluteMove_profileToken = "";
        org.onvif.ver10.schema.PTZVector _absoluteMove_position = null;
        org.onvif.ver10.schema.PTZSpeed _absoluteMove_speed = null;
        port.absoluteMove(_absoluteMove_profileToken, _absoluteMove_position, _absoluteMove_speed);


        }
        {
        System.out.println("Invoking getCompatibleConfigurations...");
        java.lang.String _getCompatibleConfigurations_profileToken = "";
        java.util.List<org.onvif.ver10.schema.PTZConfiguration> _getCompatibleConfigurations__return = port.getCompatibleConfigurations(_getCompatibleConfigurations_profileToken);
        System.out.println("getCompatibleConfigurations.result=" + _getCompatibleConfigurations__return);


        }
        {
        System.out.println("Invoking getConfigurationOptions...");
        java.lang.String _getConfigurationOptions_configurationToken = "";
        org.onvif.ver10.schema.PTZConfigurationOptions _getConfigurationOptions__return = port.getConfigurationOptions(_getConfigurationOptions_configurationToken);
        System.out.println("getConfigurationOptions.result=" + _getConfigurationOptions__return);


        }

        System.exit(0);
    }

}
